package com.zhijian.medical.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author HCG
 * @version 1.0
 * @date 2024-06-13
 */
@AllArgsConstructor
@Getter
public enum RoutinePathologySampleStepEnum {

    LT(1, "离体"),
    GD(2, "固定"),
    DJ(3, "登记"),
    QC(4, "取材"),
    TS(5, "脱水"),
    BM(6, "包埋"),
    QP(7, "切片"),
    RS(8, "染色"),
    SP(9, "送片"),
    ZD(10, "诊断"),;

    private Integer code;
    private String type;

    public static RoutinePathologySampleStepEnum getByCode(Integer code) {
        RoutinePathologySampleStepEnum[] values = RoutinePathologySampleStepEnum.values();
        for (RoutinePathologySampleStepEnum anEnum : values) {
            if (anEnum.getCode().equals(code)) {
                return anEnum;
            }
        }
        return null;
    }
}
